package com.umpay.dto.merAccess.req;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.verify.Verifiable;

/**
 * 
 * @ClassName: CommonReq  
 * @Description: 商户接入公共基类  
 * @author zhangtao  
 * @date Jan 17, 2018
 */
public class CommonReq implements Verifiable{
	
	
	/**
	 * 商户编号
	 */
	@NotEmpty(message = "商户编号不能为空")
	@Pattern(message="商户号格式不正确")
	protected String mer_id;
	
	/**
	 * 页面跳转同步通知页面路径
	 */
	//protected String ret_url;
	
	/**
	 * 服务器异步通知页面路径
	 */
	//protected String notify_url;
	
	/**
	 * 版本号
	 */
	@NotEmpty(message = "版本号不能为空")
	@Pattern(message="版本号格式不正确")
	protected String version;
	

	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}

	/*public String getRet_url() {
		return ret_url;
	}

	public void setRet_url(String ret_url) {
		this.ret_url = ret_url;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}*/

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	@Override
	public String toString() {
		return "mer_id=" + mer_id + ", version=" + version ;
	}

}
